import Vue from 'vue'
//引入全局样式
import '__CSS__/global.css'
//引入核心代码
import '__CORE__/index'
import router from './router'
import store from './store'
import Cookie from 'vue-cookie'
Vue.use(Cookie) //挂载cookie

//初始化状态
import {INIT_USER_INFO} from './store/operation-type'
store.dispatch(INIT_USER_INFO)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  //渲染函数式的App
  render: h => h('div', {class: 'wczix'}, [h(
    'keep-alive', {props:{include: 'Home'}}, [h('router-view')]
  )])
}).$mount('#app')